package com.controller;


import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.service.IMajorSubjectRelService;
import com.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 学科门类信息表 前端控制器
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@RestController
@RequestMapping("/majorSubjectRel")
public class MajorSubjectRelController{
    @Autowired
    private IMajorSubjectRelService majorSubjectRelService;

    @GetMapping("/getScore")
    public R getScore(String majorCode) {
        return R.ok(majorSubjectRelService.getScore(majorCode));
    }
}
